package com.sunlands.zlcx.usercenter.repository;

import com.sunlands.zlcx.usercenter.domain.CityDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author shixiaopeng
 */
@Repository
public interface CityRepository extends JpaRepository<CityDO, Long>, JpaSpecificationExecutor<CityDO> {

        List<CityDO> findByLevel(Integer level);
        List<CityDO> findByPcode(String pcode);
        CityDO findByCode(String code);
}
